package com.mqy.spring.service.Impl;

import com.mqy.spring.mybatis.UserMapper;
import com.mqy.spring.pojo.Book;
import com.mqy.spring.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author 13159 //作者
 * @version V1.0 //版本
 * @Project 2022.3.7springAOP
 * @Package com.mqy.spring.service.Impl
 * @Description:
 * @Date 2022/3/7 21:45//日期
 * @Motto:放下杂念,只为迎接明天更好的自己
 */
@Component
public class UserServiceImpl implements UserService {
    private UserMapper userMapper;

    @Autowired
    public void setUserMapper(UserMapper userMapper) {

        this.userMapper = userMapper;
    }

    @Override
    public Book findById(Long id) {
        return userMapper.findById(id);
    }
}
